Skip to content

feat(flake-info): handle compound licenses from nixpkgs#1227

Open
KiaraGrouwstra wants to merge 1 commit intomainfrom
compound-licenses-back
Open

feat(flake-info): handle compound licenses from nixpkgs#1227
KiaraGrouwstra wants to merge 1 commit intomainfrom
compound-licenses-back

Conversation

@KiaraGrouwstra
Copy link
Copy Markdown
Collaborator

@KiaraGrouwstra KiaraGrouwstra commented Apr 25, 2026

This extends the License enum to deserialize the new licenseType-tagged structures, recursively flattens them into leaf licenses for the search index, and exposes a package_license_expression field carrying the SPDX-style expression string (AND, OR, WITH, PLUS) when compound licenses are present (see NixOS/nixpkgs#468378).

Bump import index version to 47 for the new field.

Note that a potential follow-up would be to compound-proof our license filter, which under this PR just matches on any package containing a license in its expression.

Disclaimer: i used a coding agent in the creation of this patch.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 25, 2026

@github-actions github-actions Bot temporarily deployed to pull request April 25, 2026 11:58 Inactive
Nixpkgs is introducing compound license expressions (AND, OR, WITH,
PLUS) via NixOS/nixpkgs#468378.  This extends the `License` enum to
deserialize the new `licenseType`-tagged structures, recursively
flattens them into leaf licenses for the search index, and exposes a
`package_license_expression` field carrying the SPDX-style expression
string when compound licenses are present.

Bump import index version to 47 for the new field.
@KiaraGrouwstra KiaraGrouwstra force-pushed the compound-licenses-back branch from ece8f5a to 8acef15 Compare April 25, 2026 12:04
@github-actions github-actions Bot temporarily deployed to pull request April 25, 2026 12:04 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant